package net.qiqbframework.eventsourcing.dao;

import net.qiqbframework.common.dto.PageResultDto;
import net.qiqbframework.persisthanding.dao.BasicEntityPoDao;

import java.util.List;

public interface DomainEventDao extends BasicEntityPoDao<DomainEventPo> {

    /**
     * 根据事件id 找到相同聚合根的领域事件
     *
     * @param id
     * @return
     */
    List<DomainEventPo> listSameAggregateRootReadyById(String id);

    DomainEventPo getPoById(String id);

    PageResultDto<DomainEventPo> list4Page(DomainEventPageCondition condition);


}
